home *** CD-ROM | disk | FTP | other *** search
- vs_1_1 // version
- dcl_position v0 // input vertex position
-
- def c20,1,1,1,1 // want to not have any fog in shadow buffer
-
- m4x4 r0,v0,c12 // transform v0 by matrix at c12 and store in r0
- mov oPos,r0 // output position
-
- // mov oT0.x,r0.z // no scaling (problem is that default color interferes)
- mul oT0.x,r0.z,c7.w // scale z-value by constant in c7.x (1/maxz)
-
- mov oFog,c20.x // set fog alpha to 1.0 - so we don't have to worry about fog color
-
- // mad oT0.x,r0.z,c7.x,c7.z // add zbias at the same time
-